package com.dongjiantong.quarantine.serviceImpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongjiantong.mybatis.ServiceMybatis;
import com.dongjiantong.quarantine.mapper.SupervisionContentMapper;
import com.dongjiantong.quarantine.model.SupervisionContent;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by mz on 25/12/17.
 *
 */
@Slf4j
@Service(version = "1.0.0")
public class SupervisionContentReadServiceImpl extends ServiceMybatis<SupervisionContent> implements SupervisionContentReadService{

    @Resource
    private SupervisionContentMapper supervisionContentMapper;


    /**
     * 根据是否有效查询
     *
     * @param criteria 参数
     * @return List<SupervisionContent>
     */
    @Override
    public List<SupervisionContent> findAll(Map<String, Object> criteria) {
        return supervisionContentMapper.findByArea(criteria);
    }
}
